<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <script>
        function bl(a){
            let t= a<10 ?'0'+a:a
            return t;
        }
         function fu(b){
            let xs = parseInt(b/3600)
            let fz = parseInt(b%3600/60)
            let ms = parseInt(b%60)
            let h=bl(xs);
            let m=bl(fz);
            let s=bl(ms);
            document.write([`${b}秒转化为${h}时${m}分${s}秒`])
        }
        fu(+prompt('请输入总秒数'))
    </script>
</body>
</html>